package com.fire.service.goods;

import com.fire.entity.PageResult;
import com.fire.pojo.goods.Goods;
import com.fire.pojo.goods.Spu;

import java.util.*;

/**
 * spu业务逻辑层
 */
public interface SpuService {


    public List<Spu> findAll();


    public PageResult<Spu> findPage(int page, int size);


    public List<Spu> findList(Map<String, Object> searchMap);


    public PageResult<Spu> findPage(Map<String, Object> searchMap, int page, int size);


    public Spu findById(String id);

    public void add(Spu spu);


    public void update(Spu spu);


    public void delete(String id);

    public void saveGoods(Goods goods);//添加商品

    public Goods findGoodsById(String id);

    public void audit(String id, String status, String message);//审核状态

}
